<?php session_start();?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>:: BYKOM ::</title>
</head>
<body>
<?php require_once("config.php");
	  require_once(ROOT_DIR_CLASES.'/cCliente.php'); 	
	  $cuentaId = $_REQUEST['CUENTAID'];
	  $objetivo = $_REQUEST['OBJETIVO'];
	  BykomCliente::persistirKeepAlive($cuentaId, $objetivo, 0);
	  session_destroy();
	  $actionUrl = 'welcome.php';
      if (isset($_GET['message'])) 
		  $actionUrl = 'welcome.php?message='.$_GET['message'];
      echo "<FORM NAME='frmLogout' ACTION='$actionUrl' METHOD='post'> 
            <input type='hidden' name='logout' value=salir>
            </FORM>";
?>
<script language='JavaScript'>
        document.frmLogout.submit();		
</script>
</body>   